package com.team.arms.service_management_before.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.team.arms.service_management_before.domain.DailyReportedData;
import com.team.arms.service_management_before.service.DailyReportedDataService;
import com.team.arms.service_management_before.mapper.DailyReportedDataMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class DailyReportedDataServiceImpl extends ServiceImpl<DailyReportedDataMapper, DailyReportedData>
    implements DailyReportedDataService{

    @Autowired
    private DailyReportedDataMapper dailyReportedDataMapper;

    @Override
    public int insertAll(DailyReportedData dailyReportedData) {
        return dailyReportedDataMapper.insertAll(dailyReportedData);
    }

    @Override
    public int deleteByListInformationIds(List<String> id) {
        return dailyReportedDataMapper.deleteBatchIds(id);
    }

    @Override
    public int deleteByListInformationId(String id) {
        return dailyReportedDataMapper.deleteById(id);
    }

    @Override
    public DailyReportedData selectById(String id) {
        return dailyReportedDataMapper.selectByDailyReportedDataId(id);
    }

    @Override
    public List<DailyReportedData> selectByFiled(String field, String content) {
        return dailyReportedDataMapper.selectByFiled(field, content);
    }
}




